-- GENERATED SPELL FOR [Witchwing Slayer] --


function spell0_3278(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_3278', 30336, 1)
end

function spell1_3278(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3278', 0, 1)
end

function Sorts_3278(pUnit, Event)
local choix_sorts_3278 = math.random(0, 1)
if choix_sorts_3278 == 0 then
pUnit:RegisterEvent('spell0_3278', 1, 1)
end
if choix_sorts_3278 == 1 then
pUnit:RegisterEvent('spell1_3278', 1, 1)
end
end

function mob3278_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3278', math.random(1500, 3000), 1)
end

function mob3278_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3278_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3278_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3278, 1, 'mob3278_Action')
RegisterUnitEvent(3278, 2, 'mob3278_Leave')
RegisterUnitEvent(3278, 3, 'mob3278_Kill')
RegisterUnitEvent(3278, 4, 'mob3278_Die')
